package com.woohua.demo.strategy;


import com.google.common.collect.Lists;
import com.woohua.demo.strategy.dealer.DemoAbstractStrategy;

import java.util.List;

/**
 * @author wooHua
 * @date 2022/6/17 10:06
 * @description
 */
public class DemoStrategyHolder {

    /**
     * 填充时为单线程填充，故不需要同步
     */
    private final static List<DemoAbstractStrategy> DEALERS = Lists.newArrayList();

    public static void setEventTypeDealer(DemoAbstractStrategy dealer) {
        DEALERS.add(dealer);
    }

    public static List<DemoAbstractStrategy> getEventTypeDealer() {
        return DEALERS;
    }
}
